<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.autocomplete.js"></script>

<div class="content"><!-- 内容 begin  --> 
  <include file="__THEME__/center_menu" />
  <div class="main">
    <div class="mainbox">
      
      <div class="mainbox_C">
      <div style="overflow:hidden;">
            <div class="tab-menu"><!-- 切换标签 begin  -->
              
              <ul>
                <li><a id="feed_colleague_item" rel="colleague" class="on feed_item" href="{:U('home/Myqiugou/index')}"><span>求购信息列表</span></a></li>
				
                <li><a id="feed_all_item" rel="all" class="feed_item" href="{:U('home/Myqiugou/add')}"><span>发布新求购</span></a></li>
             
              </ul>
            </div>
        <div class="feedBox">
          
           <php>if($goodslist){</php>
          <ul class="feed_list">
            <volist id="vo" name="goodslist">
              <li class="lineD_btm" id="list_{$vo.id}">
                
               
                  <a href="{:U('shop/index/qgoods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}">{$vo['title']}</a>
                  
                <div class="feed_c_btm"> 
	                  <span class="right">
	                    <php>if( $vo['uid'] == $mid ){</php>
	                    <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这条信息?')" callback="Deleted({$vo.id})">删除</a>&nbsp;&nbsp;|&nbsp;&nbsp;
						<a href="{:U('home/Myqiugou/edit',array('id'=>$vo['id']))}">编辑</a>
						<php>}</php>
					  </span>
                      <span>
                      ￥{$vo['gprice']}&nbsp;&nbsp;  N {$vo['gnumber']} &nbsp;&nbsp;浏览：{$vo['gscan']}&nbsp;&nbsp;上次修改：{$vo.utime|friendlyDate}
			      </span> 
					  
			    </div>
                  
                
              </li>
	 </volist>
	 <php>}else{</php>
			<li>
                
                <br/> 
               您还未发布任何求购信息，点击<a href="{:U('home/Myqiugou/add')}">这里</a>发布信息
                 
                
			</li>
          </ul>
<php>}</php>		  
		 
        </div>
         <div class="page">{$page}</div>
        </div>
        <div class="c"></div>
      </div>
    </div>
  </div>
</div>
<!-- 内容 end --> 
<script>
function Deleted(goods_id){
    $.post(U('home/Myqiugou/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});

}
</script>

<include file="__THEME__/footer" /> 